namespace 项目01;
class student
{
    public string name;
    public string id;
    public string gender;
    public int age;

    public Phone phone;

    public string GetInfo()
    {
        return $"姓名：{name}\n身份证：{id}\n性别：{gender}\n年龄:{age}\n手机号码：{phone.number}\n手机型号：{phone.type}";
    }

    public student(string name, string id, string gender, int age,  string type, string number)
    {
        this.name = name;
        this.id = id;
        this.gender = gender;
        this.age = age;
        phone = new Phone(owner, type, number);
    }
}